<template>
  <div class="swipter_container">
    <el-carousel>
      <el-carousel-item v-for="(item, index) in bannerList" :key="index">
        <img :src="item" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  name: "Swipter",
  computed: {
    ...mapState(["bannerList"]),
  },
};
</script>

<style lang="less" scoped>
.swipter_container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background-color: red;
  margin-bottom: 10px;
  img {
    width: 100%;
  }
}
</style>